FROM openjdk:17.0.2


RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /opt/projects/e-car

WORKDIR /opt/projects/e-car

EXPOSE 8086

ADD ./e-car-api/target/e-car-api-0.0.1-SNAPSHOT.jar ./

CMD java -jar -Xms1024m -Xmx1024m -Xmn256m -Xss256k -XX:SurvivorRatio=8 -Dspring.profiles.active=docker e-car-api-0.0.1-SNAPSHOT.jar
